package com_djm_2025_06_10.demo1;

import java.util.Comparator;

public class NameComparetor implements Comparator<Student> {
    @Override
    public int compare(Student student1, Student student2) {
        return student1.name.compareTo(student2.name);
    }
}
